var ClubQuickGroupingItem = Item.extend({
    _ccsFileName: res.ClubQuickGroupingItem_json,
    _member: null,
    _groupPos: 0,
    _callBack: null,
    initItem: function (member, groupPos, isNotGroup, callBack) {
        this._member = member;
        this._groupPos = groupPos;
        this._callBack = callBack;


        this._nodeList['playerName'].setString(member['name']);
        this._nodeList['playerId'].setString('ID:' + member['uid']);
        loadImageToSprite(member['headUrl'], this._nodeList['head']);

        this._nodeList['btn_unselect'].setVisible(!isNotGroup);
        this._nodeList['btn_select'].setVisible(isNotGroup);
    },
    _initClickListeners: function () {
        this._clickListeners = {
            'btn_select': '_clickSelect',
            'btn_unselect': '_clickUnSelect',
        }
    },

    _clickSelect: function () {
        this._callBack(this._member, this._groupPos);
    },

    _clickUnSelect: function () {
        this._callBack(this._member, this._groupPos);
    },

});